//-----------------------------------------------------------------------------
// For.java                  Author:YanYuJun
//
//use for to n de jieceng
//----------------------------------------------------------------------------
  
   import java.util.Scanner;
   
   public class For
     {
    public static void main(String[]args)
      {
      int jieceng;
      int n1 =1;
      Scanner scan=new Scanner(System.in);
     
      System.out.println("Enter n :");
      jieceng = scan.nextInt();
      
      for(int n=1;
          n<=jieceng;
          jieceng--
         )
     n1*= jieceng*n;
    System.out.println("n's factorial:" + n1);

      
    }
}
